package com.zjitc.P3;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/13 17:07
 * @description:
 */
@Configuration
@EnableAspectJAutoProxy //自动注入切入
public class AspectConfiguration {

  @Bean
  public AspectDemo demo(){
    return new AspectDemo();
  }

@Bean
  public A a(){
    return new A();
  }
}
